

void		my_putchar(char c)
{
  write(1, &c, 1);
}

void		my_putstr(char *str)
{
  int		i;

  i = 0;
  while (str[i])
    my_putchar(str[i++]);
}

int		my_strlen(char *str)
{
  int		i;

  i = 0;
  while (str[i])
    i++;
  return (i);
}

int		my_strcmp(char *s1, char *s2)
{
  int           focus;
  
  focus = 0;                                                                                          
  while (s1[focus])                                                                                 
    {                                                                                               
      if (s2[focus] != s1[focus])
	return (s2[focus] - s1[focus]);
      focus++;
    }         
  return (0);  
}

void		my_put_error(char *str)
{
  write(2, str, my_strlen(str));
}
